package top.psjj.news.web;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Auther:小陈的Java
 */
@WebServlet("/demo")
public class DemoServlet extends BasicServlet{
    // http://127.0.0.1:80/news?method=add
    public void add(HttpServletRequest req, HttpServletResponse resp){
        System.out.println("添加");
    }
    // http://127.0.0.1:80/news?method=del
    public void del(HttpServletRequest req, HttpServletResponse resp){
        System.out.println("删除");
    }
    // http://127.0.0.1:80/news?method=list
    public void list(HttpServletRequest req, HttpServletResponse resp){
        System.out.println("查询");
    }
    // http://127.0.0.1:80/news?method=update
    public void update(HttpServletRequest req, HttpServletResponse resp){
        System.out.println("修改");
    }
}
